import { resultItem, TaskResultList, TaskResult } from './model/deployResultModel';
import { defHttp, jobHttp } from '/@/utils/http/axios';
enum Api {
  getResultList = '/system/deployResult',
  getJobResultList = '/v1/jobs/deployment/tenantAppPage',
  getJobResult = '/v1/jobs/deployment/queryProcessInstanceDetail',
}
export const getdeployResult = (params?: resultItem) => defHttp.get<resultItem>({ url: Api.getResultList, params });
export const getJobResultList = (params: {
  currren: number;
  size: number;
  appId?: string;
  status?: string;
  tanantCode: string;
}) => jobHttp.get<TaskResultList[]>({ url: Api.getJobResultList, params });
export const getJobResult = (params?: { id: string }) => jobHttp.get<TaskResult>({ url: Api.getJobResult, params });
